package com.mashibing.test.case7.scan.pkg1;

import com.mashibing.test.case7.entities.Book;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BookService {
	@Autowired(required = false)
	private BookDao bookDao;

	public List<Book> check() {
		if(bookDao == null){
			return null;
		}
		return bookDao.check();
	}
}
